<template>
  <div class="list">
    <!-- 这是列表{{ value }} -->
    <div class="listItem" v-for="(item, index) in 8" :key="index">
      <div class="item-img">
        <img src="@/assets/矩形.png" alt="" />
      </div>
      <div class="info">
        <div class="title ele fz16">
          私密产品数字不超过一行，超过以表示私密产品数字不超私密产品数字不超
        </div>
        <div class="last-title ele fz12">
          这是一个很长很长很长很长很长很长很长很长很长的私密产品数字不超私密产品数字不超
        </div>
        <div class="price">
          <span class="priceNew fz18">￥345.00</span>
          <span class="fz12 priceOld">原价：<del>￥789.00</del></span>
          <van-button
            class="button"
            color="linear-gradient(to right,  #FF5BF4,#622CCC)"
          >
            去购买
          </van-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['value']
}
</script>

<style lang="less" scoped>
.list {
  background: #f7f6fb;
  padding: 16px;
  .listItem {
    margin-bottom: 16px;
    width: 343px;
    height: 377px;
    background: #ffffff;
    box-shadow: 0px 4px 12px 0px rgba(31, 13, 68, 0.04);
    border-radius: 8px;
    .item-img {
      width: 343px;
      height: 260px;
      border-radius: 8px 8px 0px 0px;
      img {
        width: 100%;
        height: 100%;
      }
      //   background-color: #ff3040;
    }
    .info {
      padding: 12px;
      .title {
        width: 319px;
        // height: 22px;
        // line-height: 22px;
        margin-bottom: 6px;
      }
      .last-title {
        height: 17px;
        line-height: 17px;
        margin-bottom: 15px;
      }
      .price {
        position: relative;
        display: flex;
        align-items: center;
        // line-height: 14px;
        .priceNew {
          padding-right: 6px;
        }
        .priceOld {
          position: relative;
          top: 2px;
        }
        .button {
          position: absolute;
          right: 0;
          width: 76px;
          height: 32px;
          box-shadow: 0px 2px 6px 0px rgba(98, 44, 204, 0.3);
          border-radius: 16px;
        }
      }
    }
  }
}
</style>
